﻿CREATE proc thuan_qtphannhommenu_resetonerownhomnguoidung    
@UserID int,    
@MaNhomUser int    
as    
if exists (select * from QuanTri_PhanNhomNguoiDung Where UserID=@UserID and MaNhomUser=@MaNhomUser)    
begin   
delete from QuanTri_PhanNhomNguoiDung Where  UserID=@UserID and MaNhomUser=@MaNhomUser 
 select ErrCode=1   
end    
else    
begin    
  
  select ErrCode=0
  
 
  
end